package com.stress.testing.common.plugin;

import java.net.URL;

public class DefaultPluginContext implements PluginContext {
    private Plugin plugin;
    private String pluginName;
    private URL pluginURL;
    private PluginClassLoader pluginClassLoader;

    public DefaultPluginContext(String pluginName, Plugin plugin, URL pluginURL, PluginClassLoader pluginClassLoader) {
        this.plugin = plugin;
        this.pluginName = pluginName;
        this.pluginURL = pluginURL;
        this.pluginClassLoader = pluginClassLoader;
    }

    @Override
    public Plugin getPlugin() {
        return plugin;
    }

    @Override
    public String getPluginName() {
        return pluginName;
    }

    @Override
    public URL getPluginURL() {
        return pluginURL;
    }

    @Override
    public PluginClassLoader getPluginClassLoader() {
        return pluginClassLoader;
    }
}
